package com.ddx.dao;

import com.ddx.pojo.ShoppingPayFlow;
import com.ddx.pojo.ShoppingPayFlowWithBLOBs;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface ShoppingPayFlowMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ShoppingPayFlowWithBLOBs record);

    int insertSelective(ShoppingPayFlowWithBLOBs record);

    ShoppingPayFlowWithBLOBs selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ShoppingPayFlowWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(ShoppingPayFlowWithBLOBs record);

    int updateByPrimaryKey(ShoppingPayFlow record);

    List<ShoppingPayFlowWithBLOBs> selectByRecord(ShoppingPayFlow record);

    /**
     * 根据第三方流水查询记录
     * @param thirdPartyNo
     * @return
     */
    ShoppingPayFlowWithBLOBs selectByThirdPartyNo(String thirdPartyNo);

    int updateByThirdPartyNo(ShoppingPayFlow record);

    int updateByOrderId(ShoppingPayFlow record);
}